package com.hxexp.weixin.constant;

import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 证件类型常量
 *
 * @author li.jiang
 *
 */
public final class IdentificationType {
    /**
     * 身份证
     */
    public static final String IDCARD = "1";
    /**
     * 护照
     */
    public static final String PASSPORT = "3";
    /**
     * 军官证
     */
    public static final String OFFICERCARD = "2";
    /**
     * 编码和名称的映射
     */
    public static final Map<String, String> CODE_NAME_MAP = Collections.synchronizedMap(new LinkedHashMap<String, String>(3));
    // 映射数据初始化
    static {
        CODE_NAME_MAP.put(IDCARD, "身份证");
        CODE_NAME_MAP.put(PASSPORT, "护照");
        CODE_NAME_MAP.put(OFFICERCARD, "军官证");
    }

    private IdentificationType() {
    }

}
